-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send an "edited" event to all viewers when an "edit" event occurred in the streaming plugin #3000
Conversation
…o all viewers receive the new metadata Signed-off-by: Aymeric Moizard <[email protected]>
Thanks for the contribution, but I'd rather this functionality was optional, possibly as an argument passed to On the PR itself, the documentation says "permanent" is sent as well, but that's not the case: in the code you only push "metadata". I'm personally ok with that, as I don't see why users would care about a change being permanent or not. Besides, I'd only send an update on "metadata" if a new "metadata" was provided in the first place: if you send an edit that changes other things and not "metadata", why send an event to everyone about something that stayed the same? |
…o all viewers receive the new metadata * The edit request have an option to enable the event "edited_event" * The edited event is only sent if the edit contains "edited_event=true" AND if the metadata has been updated * Documentation updated Signed-off-by: Aymeric Moizard <[email protected]>
Hi Lorenzo, Following your advise, I pushed another commit:
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes! I've noticed a few other things, which you can find below. Mostly editorial, so nothing big!
…o all viewers receive the new metadata * fix typo and documentation text * add edited_event to the object that performs the automated valitation checks on incoming JSON payloads * fix coding style * rename a variable to avoid shadowing NOTE: add missing new_metadata to the object that performs the automated valitation checks on incoming JSON payloads Signed-off-by: Aymeric Moizard <[email protected]>
The newer commit should take into account all your comments. I also added new_metadata to the object that performs the automated validation checks on incoming JSON payloads. |
Thanks and good catch! |
Thanks again, merging then 👍 |
When someone sends an "edit" request to modify a streaming plugin mountpoint, viewers are not aware of the "edit".
This PR is used within our deployments so that all viewers will receive an "edited" event containing the id, permanent and metadata parameters. There are 2 purposes: being aware of a change for the mountpoint definition and retrieving immediately the updated metadata, if any.
Feel free to send any comments.
Kind Regards,